import axios from "./http";
//分类
export const product = async () => {
  return await axios.get("product-categories");
};
//跳详情
export const prid = async (id) => {
  return await axios.get(`products/${id}`);
};
//产品分类
export const produc = async (id) => {
  return await axios.get(`product-categories/${id}`);
};
//关于我们

export const about = async () => {
  return await axios.get(`about`);
};
//关于我们tap切换
export const abouttap = async (id) => {
  return await axios.get(`about/${id}`);
};
//查找产品
export const addproducts = async (params) => {
  return await axios.get(`products`,{params});
};
//
export const producss = async (id,query) => {
  return await axios.get(`product-categories/${id}/${query}`);
};